//
//  NSDictionary+Extend.h
//  XLDoctor
//
//  Created by longma on 2018/12/27.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#pragma mark  IBInspectable
@interface UILabel (IB)

/// 标题颜色
@property (nonatomic, strong)IBInspectable NSString *mj_titleColorName;

/// 字体风格
@property (nonatomic, strong)IBInspectable NSString *mj_fontStyleName;

/// 行空隙
@property (nonatomic, assign)IBInspectable CGFloat mj_lineSpacing;

/// 加粗
@property (nonatomic, assign)IBInspectable CGFloat mj_boldSize;

/// 正常字体
@property (nonatomic, assign)IBInspectable CGFloat mj_systemSize;

/// BEBAS
@property (nonatomic, assign)IBInspectable CGFloat mj_bebasSize;

/// HarmonyOS_Sans_Condensed_Bold
@property (nonatomic, assign)IBInspectable CGFloat mj_harmonyOSSize;
@end

@interface UILabel (Language)
/// 语言
@property (nonatomic, strong)IBInspectable NSString *mj_localizable;
@end


@interface UILabel (MJUI)

/**
 *  @method 多行字符串,字符串后面显示不全会自动换行
 *
 *  @param lineSpacing  行空隙
 */
- (void)mj_paragraphStyleWithLineSpacing:(CGFloat)lineSpacing;

/**
 *  @method 多行字符串,字符串后面显示不全会自动换行
 *
 *  @param lineSpacing  行空隙
 *  @param wordSpace  字空隙
 */
- (void)mj_paragraphStyleWithLineSpacing:(CGFloat)lineSpacing wordSpace:(CGFloat)wordSpace;

/**
 @method 指定的字符串修改字体大小，颜色
 
 @param arrString 字符串数组
 @param font      字体
 @param color     修改的颜色
 @param lineSpacing     行间距

 */
- (void)mj_paragraphStyleWithArrString:(NSArray *)arrString font:(UIFont * _Nullable)font color:(UIColor * _Nullable)color lineSpacing:(CGFloat )lineSpacing;

/**
 @method 指定的字符串修改字体大小，颜色
 
 @param arrString 字符串数组
 @param font      字体
 @param color     修改的颜色
 @param lineSpacing     行间距
 @param verticalCenter     垂直居中

 */
- (void)mj_paragraphStyleWithArrString:(NSArray *)arrString font:(UIFont * _Nullable)font color:(UIColor * _Nullable)color lineSpacing:(CGFloat )lineSpacing verticalCenter:(BOOL)verticalCenter;

/// 指定的字符串修改字体大小，颜色(相同文本)
/// @param targetText 相同的文本
/// @param font 字体
/// @param color 修改的颜色
/// @param lineSpacing 行间距
- (void)mj_paragraphStyleWithTargetText:(NSString *)targetText font:(UIFont * _Nullable)font color:(UIColor * _Nullable)color lineSpacing:(CGFloat )lineSpacing;

@end

NS_ASSUME_NONNULL_END
